<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Admin Panel Club</title>


        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>/css/admin_style.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>/css/style.css"/>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>/css/text.css" />


        <!-- General Metas -->
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><!-- Force Latest IE rendering engine -->
        <meta name="description" content="" />
        <meta name="author" content="" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> 

        <!-- Stylesheets -->
        
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css2/base.css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css2/skeleton.css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css2/layout.css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css/admin_style.css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css/adminclubview.css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css/table1.css" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>/css2/trybutton.css" />

        <style>      
            .table { margin-right:20px; border-collapse:collapse; }
            .table, td, th { width:auto; border:1px solid black; padding-left:20px; padding-right:20px; }

            .box
            {
                width: 498px;
                height: 43px;
                margin-right: -294px;
                padding-top: 2em;
                padding-left: 27px;
                background-color: #ADD8E6;
                box-shadow: 10px 10px 5px #888888;
                font-family:Georgia, "Times New Roman", Times, serif;

            }


        </style>
       
    </head>
    
     <style type="text/css">
	  @-moz-document url-prefix() {
  
	  .zebra{position:relative;top:200px;
		}
		.wrap{margin-top:-100px;}
		.lo{margin-top:-100px;}
		.firefox_push_button blue {margin-top: 2em;}
		.firefoxaddclub {margin-top: 18em;margin-left: -120px;}
  </style>
  
     <div id="" style="border:2px solid #FFF;
        border: 2px solid #FFF;
        position: absolute;
        width: 1050px;
        margin-left: 150px;
        height: 970px;
        background-color: #CCC;
        z-index: -60;-webkit-box-shadow: 0px 0px 10px rgba(50, 50, 50, 1);
        -moz-box-shadow:    0px 0px 10px rgba(50, 50, 50, 1);
        box-shadow:         0px 0px 10px rgba(50, 50, 50, 1); ">
      </div>
    <body>
    
       <!----start of banner--->
    <div class="lo" style="background-image:url(<?php echo base_url(); ?>/images/wallpaper/Fotor1219134327.jpg);height: 218px;width: 1054px;margin-right: 145px;float: right;">
    <div class="logo"> <img src="<?php echo base_url(); ?>/images/logo/image.gif"></div>
    <div style="float: left;margin-left: -339px;margin-top: 11em;color: white;font-family: monospace;font-size: small;">By: Grand Master Casimiro "CHINGI" Grandez</div>
    </div> <!----end of banner--->
    
    
         <div id="menu">
            <?php $this->load->view('menu_view'); ?>
            <div id="logout">
                <?php echo anchor("GSD_admin/user_add", "Logout"); ?>    
            </div>
         </div>
    </div>
        
 

            <table class="zebra" style="width: auto;margin-left: 13%; margin-top: 10em;">

                <thead>
                    <tr>
                        <th>&nbsp;</th>
                        <th>Club Name</th>
                        <th>Club Master</th>
                        <th>Date Founded</th>
                        <th>Facebook Page</th>
                        <th>Website</th> 
                        <th>Action</th> 

                    </tr>
                </thead>

                <tbody>

                    <?php
                    $action = 1;
                    foreach ($clubs as $club) {
                        ?>
                        <tr>
                            <td> 
                                <div style="width: 40px; height: 20px;"> 
                                   <img src="<?php echo base_url();?>/ClubLogo/<?php echo $club['photo'] ?>" />  
                                </div>
                               
                            </td>
                            <td>
                                <?php echo anchor('club_ctrl/view_profile/' . $club['clubID'], $club['clubName']) ?>
                            </td>
                            <td>
                                <?php echo $club['clubmID'] ?>
                            </td>

                            <td>
                                <?php echo $club['dateFounded'] ?>
                            </td>

                            <td>
                                <?php echo $club['fbpage'] ?>
                            </td>

                            <td>
                                <?php echo $club['website'] ?>
                            </td>
                            <td>
                                <?php echo anchor('club_ctrl/edit_club/' . $club['clubID'] . '/1', 'Edit') ?> 
                            </td>

                        </tr>
                        <?php }
                    ?>
           
                </tbody>
         
            </table>
                     <div style="float: left;margin-top: -1em;margin-left: 800px;" >
                     	<div class="firefoxaddclub">
                        <?php echo anchor("club_ctrl/add_club", "Add Club", array('class' => 'push_button blue')); ?>		
                    	</div>
                    </div>
                    
        </div><!--end align-->


        <!----start footer--------->
            <div style=" background: #006;margin-top: 21.6em;margin-left: 150px;width: 1054px;height: 96px;">
                <div class="buttom_menu">
                <br/>
               
        
                <div><a href="###">Home</a></div> 
                <div style="margin-left: 50px;margin-top: -1.5em;"><a href="###">About</a></div>    
                <div style="margin-left: 98px;margin-top: -1.5em;"><a href="###">Contact Us</a></div>
                <div style="margin-left: 174px;margin-top: -1.5em;"> <a href="###">Shop</a></div>
                </div>
                <br/><div style="font-family: monospace;color: white;font-size: 10px;margin-top: 0em;text-align: -webkit-center;">All Rights Reserved 2013. Copyright www.websiteurl.com</div>
                <div style="font-family: monospace;color: white;font-size: 10px;margin-top: -1em;text-align: -webkit-center;">Develop by: Softbiz Global IT Solutions www.softbizglobal.com</div>
             </div>  <!----end footer--------->
        

        <?php echo form_close() ?>
       
    </body>
</html>


